package com.simou.service;

import com.simou.pojo.Provider;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProviderService {
    //根据条件查询用户          limit start,pageSize
    List<Provider> getProvidersByLimit(int start,int pageSize,String proCode,String proName);

    int getProvidersCount(String proCode,String proName);

    int addProvider(Provider provider);

    int updateProvider(@Param("proid") long proid,@Param("provider")Provider provider);

    int deleteProvider(long proid);

}
